package com.micro.school.common.core.constant;

/**
 * 权限相关通用常量
 *
 * @author upupgo
 */
public class SecurityConstants
{
    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";
    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 校区id
     */
    public static final String DETAILS_TENANT_ID = "tenant_id";

    /**
     * 租户id H5用
     */
    public static final String DETAILS_TENANTID = "tenantid";

    /**
     * 分校区id H5用
     */
    public static final String DETAILS_CAMPUSID = "campusid";

    /**
     * 分校区id
     */
    public static final String DETAILS_CAMPUS_ID = "campusId";
    /**
     * 学院id
     */
    public static final String DETAILS_COLLEGE_ID = "collegeId";



    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "Authorization";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求
     */
    public static final String INNER = "inner";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "user_key";

    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "login_user";


    /**
     * 登录用户
     */
    public static final String LOGIN_TOKENS = "login_tokens";

    /**
     * 角色权限
     */
    public static final String ROLE_PERMISSION = "role_permission";
    /**
     * 身份证是否异常1、不隐藏 2、隐藏
     */
    public static final String DETAILS_IS_HIDE = "isHide";
}
